package com.xinqi.modules.third;

import com.xinqi.common.security.annotation.EnableXqFeignClients;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * 资源服务
 *
 * @author dgyu
 */
@Slf4j
@EnableDiscoveryClient
@EnableXqFeignClients
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@ComponentScan(basePackages = {"com.xinqi.modules.third","com.xinqi.common.third"})
public class ThirdApplication {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(ThirdApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        log.info("(♥◠‿◠)ﾉﾞ  第三方服务模块启动成功   ლ(´ڡ`ლ)ﾞ  ");
    }
}
